home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / usr / lib / pm-utils / sleep.d / 05led < prev    next >
Text File  |  2008-10-15  |  297b  |  17 lines

  1. #!/bin/sh
  2. # On an IBM system. make the suspend LED blink.
  3. # TODO: Merge with 95led?  Should be trivial.
  4.  
  5. [ -f /proc/acpi/ibm/led ] || exit $NA
  6.  
  7. case "$1" in
  8.     hibernate|suspend)
  9.         echo "7 blink" >/proc/acpi/ibm/led
  10.         ;;
  11.     thaw|resume) 
  12.         echo "7 off" >/proc/acpi/ibm/led
  13.         ;;
  14.     *) exit $NA
  15.         ;;
  16. esac
  17.